package com.lqr.jsexcel.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/jsexcel")
public class SimpleExcelController {
	
	@RequestMapping("/jsActionTurn")
	public String jsActionTurn(HttpServletRequest requset, HttpServletResponse response) {
		System.out.println("lqr_coming, for the lich king");
		return "jsresource";
	}
	
	@RequestMapping("/excelIn")
	@ResponseBody
	public String jsExcelIn(@RequestBody String params, HttpServletRequest requset, HttpServletResponse response ) {
		System.out.println("params:"+params);
		return "SUCCESS";
	}
	
	
	@RequestMapping("/turnToLimitSizeAndType")
	public String turnToLimitSizeAndType(HttpServletRequest requset, HttpServletResponse response) {
		System.out.println("lqr_coming, for the lich king--------------------------------LimitSizeAndType");
		return "limit/LimitSizeAndType";
	}
	
	
	@RequestMapping("/turnToSignlePull")
	public String turnToPull(HttpServletRequest requset, HttpServletResponse response) {
		System.out.println("lqr_coming, for the lich king--------------------------------Pull 拖曳文件上传");
		return "pull/SignlePull";
	}
}
